﻿namespace MemoryDuosInterfaz
{
    public class Coordenadas
    {
        private int _x;
        private int _y;

        public bool SonValidas { get; set; }

        public int X { get { return _x; } set { _x = value; SonValidas = true; } }

        public int Y { get { return _y; } set { _y = value; SonValidas = true; } }

        public Coordenadas()
        {
        }

        public Coordenadas(int y, int x)
        {
            X = x;
            Y = y;
        }

        public override string ToString()
        {
            return string.Format("X:{0} Y:{1}", X, Y);
        }
    }
}